/*
 * Checkbox.hpp
 *
 *  Created on: 11-01-2011
 *      Author: Przemek
 */

#pragma once

#include "Container.hpp"
#include "Label.hpp"
#include "pch.hpp"

class Checkbox: public Container
{
	private:
		static const float BOX_SIDE_SIZE;
		bool checked;
		Label* label;

	public:
		explicit Checkbox(bool checked = true, const std::string& text = "");
		bool isChecked() const;
		virtual void draw(const ClipArea& clipArea);
		void mouseReleased(const MouseListener::EventArguments& arguments);
};
